package cn.com.cloudpioneer.evaluate.mapper;

import cn.com.cloudpioneer.evaluate.model.UserModel;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther maruikai
 * @create 2023/9/14-10:20
 */
public interface UserMapper {

    Integer addUser(UserModel userModel);

    UserModel findOne(@Param("loginName") String loginName, @Param("password") String password);

    UserModel findByUserId(@Param("userId") String userId);

    List<UserModel> findAllByKeyword(@Param("keyword")String keyword);

    List<UserModel> findByIds(@Param("ids")List<String> ids);

    List<UserModel> findAll();

    Integer updateUser(UserModel userModel);

    Integer delUser(@Param("userId") String userId);
}
